import navSkin from "../../../common/navSkin"

export default {


	getPageData() {
		let that = this
		that.$httpRequest.request({
			that,
			url: 'wechat/getAddressDetail',
			method: 'get',
			params: {
				id: that.id
			},
			success: res => {
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					if (res.data) {
						that.formData = res.data
					}


				} else {

				}
			}
		})
	},
	// submit() {
	// 	let that = this
	// 	let params = {}
	// 	if (this.id) {
	// 		params = this.formData
	// 		params.id = this.id
	// 	} else {
	// 		params = this.formData
	// 	}
	// 	console.log(params)
	// 	that.$httpRequest.request({
	// 		that,
	// 		url: that.id ? 'wechat/editAddress' : 'wechat/addAddress',
	// 		method: 'post',
	// 		params,
	// 		success: res => {
	// 			if (res.code === that.$httpConfig.SUCCESS_CODE) {
	// 				that.$navSkin.goBack();
	// 			} else {

	// 			}
	// 		}
	// 	})
	// },
}